cc.Class({
    extends: cc.Component,

    properties: {
        startBtn: {
            default: null,
            type: cc.Node
        }
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start() {
        var scalTo = cc.scaleTo(0.8, 0.9);
        var reverse = cc.scaleTo(0.8, 1);
        var seque = cc.sequence(scalTo, reverse);
        var repeat = cc.repeatForever(seque);
        this.startBtn.runAction(repeat);
        cc.director.preloadScene("MainScene");
        this.startBtn.on("touchstart", function() {
            cc.director.loadScene("MainScene");
        })
    },

    // update (dt) {},
});